﻿using System;
using System.Windows.Controls;

namespace PiviotViewerSLViewer
{
    public partial class CollectionInfoBox : UserControl
    {
        public CollectionInfoBox(Action onClose, string title, string descrip)
        {
            InitializeComponent();

            // When we close...

            CloseButton.Click += (a, b) => onClose();
            TitleText.Text = title;
            DescriptionText.Text = descrip;
        }
    }
}
